package fem2.element;

import fem2.MeshPart;
import inf.jlinalg.IMatrix;
import inf.jlinalg.IMatrixReadOnly;
import inf.jlinalg.IVector;
import inf.jlinalg.IVectorReadOnly;

/**
 * interface structural with matlab/python
 * 
 * @author hbui
 * 
 */
public class MatlabStructuralElement extends StructuralElement {

	public MatlabStructuralElement(MeshPart mp) {
		super(mp, null);
	}

	@Override
	public IMatrixReadOnly computeKte(IMatrix kte) {
		return null;
	}

	@Override
	public IVectorReadOnly computeRie(IVector rie) {
		return null;
	}

	/**
	 * set the sigma at Gauss point k
	 * 
	 * @param k
	 * @param v
	 */
	public void setSigma(int k, double... v) {
		IVector sigma = getStress(k);
		for (int i = 0; i < v.length; i++) {
			sigma.set(i, v[i]);
		}
	}

	@Override
	public void Initialize() {
	}

	@Override
	public void InitializeSolutionStep() {
	}

	@Override
	public void InitalizeNonlinearIteration() {
	}

	@Override
	public void FinalizeNonlinearIteration() {
	}

	@Override
	public void FinalizeSolutionStep() {
	}

	@Override
	public void CalculateOutputData() {
	}

}
